<div id="page-heading"><h1><?php echo lang('file_folders.delete_title'); ?></h1></div>
<div class="closable notification attention">
	<?php echo lang('file_folders.confirm_delete'); ?>
</div>
<?php $this->load->view('partials/notices'); ?>
<?php if ($file_folders): ?>
<?php echo form_open('admin/folders/delete', 'id="mainform"'); ?>
<table cellspacing="0" cellpadding="0" border="0" width="100%" id="product-table">
				<tbody>
				<tr>
				<?php if (group_has_role('files', 'delete_folder')): ?>
					<th class="table-header-check"><a id="toggle-all" ></a> </th>
				<?php endif; ?>
					<th class="table-header-repeat line-left"><a href="javascript:void(0);"><?php echo lang('files.name_label'); ?></a></th>
					<th class="table-header-repeat line-left"><a href="javascript:void(0);"><?php echo lang('file_folders.created_label'); ?></a></th>
					<th class="table-header-repeat line-left"><a href="javascript:void(0);">Subfolders</a></th>
					<th class="table-header-repeat line-left"><a href="javascript:void(0);">Files</a></th>
				</tr>
				
				<?php foreach ($file_folders as $key => $folder): ?>
				<tr <?php if($key%2 == 0):?>class="alternate-row"<?php endif;?>>
					<?php if (group_has_role('files', 'delete_folder')): ?>
						<td><?php echo form_checkbox('action_to[]', $folder->id, TRUE); ?></td>
					<?php endif; ?>
					<td><?php echo anchor('admin/folders/contents/' . $folder->id, repeater('&raquo; ', $folder->depth) . $folder->name, 'title="' . $folder->name .'" data-path="' . $folder->virtual_path . '" class="folder-hash"'); ?></td>
					<td><?php echo format_date($folder->date_added); ?></td>
					<td><?php echo $folder->count_subfolders; ?></td>
					<td><?php echo $folder->count_files; ?></td>
				</tr>
				<?php endforeach;?>
				</tbody>
</table>
<?php echo form_hidden('confirm_delete', 'yes'); ?>
<input type="submit" name="btnAction" value="" class="form-submit" />
<div align=center><div class="inner"><?php $this->load->view('partials/pagination'); ?></div></div>
<?php echo form_close();?>
<?php endif; ?>
